package com.shen.jcbf.thread;

/**
 * @author 怜笑
 * @company 公司
 * @create 2019-08-07 10:35
 */
public class TestThread extends Thread{

    @Override
    public void run() {
        System.out.println("excute run …… ");
    }

    public static void main(String[] args) {
        Thread thread = new TestThread();
        thread.start();

        thread.interrupt();
        Thread.currentThread().interrupt();
        System.out.println("1------" + Thread.interrupted());
        System.out.println("2------" + Thread.interrupted());
    }
}